package com.hui.processor;

import com.hui.domain.City;
import lombok.extern.slf4j.Slf4j;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.stereotype.Component;

import java.util.Map;

@Slf4j
@Component
public class CityItemProcessor implements ItemProcessor<City, City> {

    private Map<String, Object> parameterValues;

    @Override
    public City process(final City city) {

        return city;
    }

    public Map<String, Object> getParameterValues() {
        return parameterValues;
    }
    public void setParameterValues(Map<String, Object> parameterValues) {
        this.parameterValues = parameterValues;
    }
}